<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>添加API客户</title>
<script type="text/javascript">
	
</script>
</head>
<body>
	<div class="pageContent">
		<form class="pageForm required-validate" method="post" action="updateApiUserAction.action" onsubmit="return validateCallback(this, navTabAjaxDone);">
			<input type="hidden" name="rightId" value="${rightId}" /> <input name="id" value="<s:property value='#request.apiUser.id' />" type="hidden" />
			<div class="pageFormContent" layoutH="56">
				<table>

					<tr>
						<td>用户名：</td>
						<td><input name="username" type="text" size="30" class="required textInput valid" value="${apiUser.username}"/></td>
					</tr>
					<tr>
						<td>联系人名称：</td>
						<td><input name="contacts" type="text" size="30" class="required textInput valid" value="${apiUser.username}"/></td>
					</tr>
					<tr>
						<td>公司名称：</td>
						<td><input name="companyname" type="text" size="30" class="required textInput valid" value="${apiUser.username}"/></td>
					</tr>
					<tr>
						<td>座机电话：</td>
						<td><input name="phone" type="text" size="30" class="required textInput valid" value="${apiUser.username}"/></td>
					</tr>
					<tr>
						<td>手机：</td>
						<td><input name="mobile" type="text" size="30" class="required textInput valid" value="${apiUser.username}"/></td>
					</tr>
					<tr>
						<td>地址：</td>
						<td><input name="address" type="text" size="30" class="required textInput valid" value="${apiUser.username}"/></td>
					</tr>
					<tr>
						<td>邮箱：</td>
						<td><input name="email" type="text" size="30" class="required textInput valid" value="${apiUser.username}"/></td>
					</tr>
	
					<tr>
						<td>是否可用：</td>
						<td>	
						<s:if test="#request.apiUser.isenabled==1">
							<select  name="isenabled" style="width: 120px">
								<option value="0">禁用</option>
								<option value="1" selected="selected">启用</option>							
							</select>
						</s:if>	
						<s:elseif test="#request.apiUser.isenabled==0">
							<select  name="isenabled" style="width: 120px">
								<option value="0" selected="selected">禁用</option>
								<option value="1">启用</option>							
							</select>
						</s:elseif>
					</td>
					</tr>

					<tr>
						<td>备注：</td>
						<td><input name="content" type="text" size="30"  value="${apiUser.content}"/></td>
					</tr>

					
				</table>
			</div>
			<div class="formBar">
				<ul>
					<li>
						<div class="buttonActive">
							<div class="buttonContent">
								<button type="submit">保存</button>
							</div>
						</div></li>
					<li>
						<div class="button">
							<div class="buttonContent">
								<button type="button" class="close">取消</button>
							</div>
						</div></li>
				</ul>
			</div>
		</form>
	</div>
</body>
</html>